<script type="text/javascript">
<!--
// Should really check the browser to stop this whining ...
function select_switch(status)
{
	for (i = 0; i < document.priv_list.length; i++)
	{
		document.priv_list.elements[i].checked = status;
	}
}
//-->
</script>
<h2>{L_AUTH_TITLE} for {USERNAME}</h2>
<p>{USER_GROUP_MEMBERSHIPS}</p>

<p><b>{L_PRIVILEGES}</b><br />{L_AUTH_EXPLAIN}</p>

<form method="post" name="priv_list" action="{U_USER_FORUMS}" {I18N}>
<table><thead>
	<tr>
		<th width="50%">{L_FORUM}</th>
		<th>{L_PRIVILEGES}</th>
	</tr>
</thead><tbody>
	<!-- BEGIN forums -->
	<tr>
		<td style="white-space:nowrap;">{forums.FORUM_NAME}</td>
		<td>
			<input type="checkbox" name="forum_id_list[]" value="{forums.FORUM_ID}" {forums.PRIV_CHECK} />
		</td>
	</tr>
	<!-- END forums -->
</tbody><tfoot>
	<tr>
		<td></td>
		<td><a href="javascript:select_switch(true);">{L_MARK_ALL}</a> :: <a href="javascript:select_switch(false);">{L_UNMARK_ALL}</a></td>
	</tr>
	<tr>
		<td><a href="{U_USER_FORUMS}"><b>{L_ANOTHER_USER}?</b></a></td>
		<td>{S_HIDDEN_FIELDS}
			<button type="submit">{L_SUBMIT}</button>
			&nbsp;&nbsp;
			<button type="reset">{L_RESET}</button>
		</td>
	</tr>
</tfoot>
</table>
</form>
